#include "Point.h"
#include <iostream>
using namespace std;

Point::Point(int x, int y)
	:x(x),
	y(y)
{
}
void Point::display() const
{
	cout << "(" << x << ", " << y << ")" << endl;
}

Circle::Circle(const Point& center, int radius)
	:center(center),
	radius(radius)
{

}

void Circle::onDraw()
{
	cout << "center: " << this->center << endl;
	cout << "radius: " << this->radius << endl;
}

ostream& operator << (ostream& out, const Point& rhs)
{
	out << "(" << rhs.x << ", " << rhs.y << ")";
	return out;
}


